#include <pthread.h>
#include <stdio.h>
#define NUM_THREADS     5

void *PrintHello(void *threadid);//this bit is a void pointer
int t; //maybe a global variable for the loop would help
void *PrintHello(void *threadid)
{
	//printout statements go here
	printf("I am doing a few threads now\n");
}

int main (int argc, char *argv[])
{
   pthread_t threads[NUM_THREADS];

   for(int t = 0; t < NUM_THREADS; t++){//t is 5 as defined by NUM_THREADS up the top
	printf("I am doing many threads now\n");
      int rc = pthread_create(&threads[t], NULL, PrintHello, (void *)t);
	//can't see where this is used
	NULL, PrintHello, (void *)t);
   }

   // Last thing that main() should do
   pthread_exit(NULL);
}//don't forget -lpthread when compiling
